package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.AffairContentMapper;
import com.xpc.pojo.AffairContent;
import com.xpc.service.IAffairContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 内容表(AffairContent)表服务实现类
 *
 * @author makejava
 * @since 2022-05-04 14:26:14
 */
@Service("affairContentService")
public class AffairContentServiceImpl extends ServiceImpl<AffairContentMapper, AffairContent> implements IAffairContentService {
    @Autowired
    private AffairContentMapper affairContentMapper;

    @Override
    public Page<AffairContent> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        affairContentMapper.selectPage(page, null);
        return page;
    }
}

